forked from prisma/prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] main from prisma:main #81
Open
pull
wants to merge
245
commits into
prisma-korea:main
Choose a base branch
from
prisma:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
#24509) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…945 (#24501) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…24481) * feat(client): added provider compatibility check for Driver Adapters * chore(client): removed mock adapterName stub * chore(client): adapted mock adapterName stub * chore(client): remove console.logs * test(client): fix failures in Node.js 16? * test(client): get rid of libsql, which is not compatible with Node.js 16 * test(client): revert "breaking" change, due to panics happening in Rust. Added comments with TODo * chore: fix tests? * chore: fix tests?? * chore: fix tests, add D1 * chore: fix type tests * chore: fix type tests? * chore: fix type tests + module resolution issues with mock-adapter * chore: fix e2e tests??? * chore: fix e2e tests?????? * test(client): split e2e "prisma-client-imports" in different test suite for each Driver Adapter provider * chore: update pnpm-lock * chore: removed unused undici import
…14.0 (#24542) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…9fc221e9de94 (#24560) * test(client): SQLite "Timed out during query execution." for concurrent queries Reproductions for #11789 * test(client); add more tests * chore(deps): update engines to 5.16.0-1.fix-sqlite-concurrent-writes-74a48e9f33b0a8b403045af35430ce444541be88 * test(client): update tests for D1 * test(client): fix D1 test * test(client): prove that #22947 is solved as well * add DROP before create * chore(client): rename test suite * chore(client): fix mongodb issue? * use `db.dropDb()` * test(client): clean up functional tests, remove non-deterministic IDs * test(client): run only on SQLite * chore(deps): update engines to 5.16.0-16.4c3db41c3ad6086fa0f844bafe039fc221e9de94 * chore(client): fix UTF8 issues with Postgres --------- Co-authored-by: Joël Galeran <[email protected]> Co-authored-by: jkomyno <[email protected]> Co-authored-by: Alberto Schiabel <[email protected]>
Should fix the failures for e2e tests.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: display the socket path during migration * affects: PostgreSQL, CockroachDB, and MySQL
* feat(client): Implement global `omit` configuration Allows to set `omit` option in `PrismaClient` constructor: ```ts const prisma = new PrismaClient({ omit: { user: { password: true } } }) ``` If developer does so, specified field will be omitted from all model results by default as if local `omit` option was specified for every query. It is still possible to include field explicitly either by using `omit: { field: false }` or `select: { field: true }` on a query. Also, just like in case of local omit, if result extension needs omitted field, we will still query it from DB, but drop before returning the final result. Feature implemented under the same `omitApi` preview flag as local `omit`. Implementation-wise, done by forwarding `ClientOptions` generic all the way from `PrismaClient` to individual query results. Both local and global `omit` are now applied at the moment of `DefaultSelection` creation. Previously, local omit was applied after `select` and `include`, but that does not work if we want to be able to undo global omit in individual queries. Close prisma/team-orm#1109 Ref #5042 * fix extensions tests * Fix composites selection tests * Address review feedback * Render `omit` as required for empty selection
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…319a57a5aa0 (#25870) Co-authored-by: Alberto Schiabel <[email protected]>
Co-authored-by: Alberto Schiabel <[email protected]>
Re-export `registerInstrumentations` from `@opentelemetry/instrumentation` in `@prisma/instrumentation`. This way users won't need to explicitly install the `@opentelemetry/instrumentation` package if they don't need it for anything else, and will be guaranteed to use a compatible version.
…0969c9317d (#25887) * chore(deps): update engines to 6.2.0-2.acc7a891c419e76523175dc1cde0150969c9317d * chore: update snapshots --------- Co-authored-by: Jacek Malec <[email protected]>
When we have nested `select` or `include`, TypeScript at some point gives up remembering what keys `A` has exactly and discards the `omit` for whatever reason. Re-adding the `omit` key at the point it happens using the `A & { omit: A['omit'] }` hack makes TypeScript a little bit less forgetful. Closes: prisma/team-orm#1442 Fixes: #24835 Co-authored-by: Jacek Malec <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…5b0dc7bad9f (#25965) * chore(deps): update engines to 6.2.0-11.c49e56c20818c325095752dd0ae895b0dc7bad9f * feat: add necessary bits for updateManyAndReturn * fix: add shouldApplyGlobalOmit case * fix: fix tests * fix: add missing ts-test-if * fix: make test consistent with createManyAndReturn * fix: delete unused test-if * test: add unsupported test * test: correct folder name --------- Co-authored-by: Jacek Malec <[email protected]>
* fix(cli): remove usage of removed isError node.js api causing failures on node 23 * chore(ci): add node 23 to ci matrix * docu: update node.js version requirements in docs * fix(tests): increase warmup iterations to account for new JIT behaviour in node 23 * docu: add comment about warmup iterations in memory tests
* feat(cli): report typescript version via `prisma --version` * feat(cli): always import the process module explicitly
…d274b48b27d (#25981) * chore(deps): update engines to 6.2.0-12.51db5cf11ad393407e86084764bced274b48b27d * test: enable enum tests for sqlite * test: runtime errors * fix: correct test-if --------- Co-authored-by: Jacek Malec <[email protected]>
…bee5eb9517 (#26001) * chore(deps): update engines to 6.3.0-4.66ff51574f705989a0e2c8bf6f1659bee5eb9517 * fix: update tests to account for limit param of deleteMany in snapshots * fix: another round of snapshot updates --------- Co-authored-by: Florian Goessler <[email protected]>
* add ppg datasource to cli init command * add todos and fix graphql type * remove console log and revert api endpoint url changes * import poll from platform * comment out log * add local type * update copy * add prisma+postgres to connector type * add prisma+postgres to hard coded list * add orThrow suffix to api methods * instantiate new wait time on each poll iteration * update trademark symbol * improve return type * feat(cli-ppg): add interactive prompts and region select (#25998) * add interactive prompts and region select * add copyright character * add getPrismaPostgresRegionsOrThrow util * sort regions * fix copy * introduce --db flag and store ppg key to .env * print out direct console project url * copy improvements * return email from signup flow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )